<%--
  Created by IntelliJ IDEA.
  User: 甲乙饼叮叮
  Date: 2019/10/8
  Time: 14:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div style="display:block;" class="tabpage">
    <h3 class="glyphicon glyphicon-grain">就诊记录</h3>
    <div class="counts">
        <c:if test="${empty orderVos}">
            <hr><span style="margin: 0 auto;text-align: center">您没有历史订单</span>
        </c:if>
        <c:forEach items="${requestScope.orderVos.list}" var="o">
            <c:if test="${o.regStatus==1 || o.regStatus==2}">
                <div style="margin-bottom: 50px;">
                    <div class="list">
                        <div class="leftlist">
                            <h4>${o.deptName}-${o.sdeptName}&nbsp;(${o.tstart}-${o.tend})</h4><br>
                            <span style="color: rgb(180, 180, 180)">知医治第一医院</span>
                            <c:if test="${o.regStatus==1}">
                                <span>(订单完成)</span>
                            </c:if>
                            <c:if test="${o.regStatus==2}">
                                <span>(已退号)</span>&nbsp;&nbsp;&nbsp;
                            </c:if>
                            <span style="padding-left: 150px; color: rgb(180, 180, 180)">医师:${o.docName}</span>
                        </div>
                        <div class="rightlist">
                            <span style="font-size: 2em;">${o.month}/${o.day}</span><br>
                            &nbsp;<span style="color: rgb(180, 180, 180)">${o.year}</span>
                        </div>
                    </div>
                    <div style="border-right: 1px dashed rgb(1,81,40);border-left:1px dashed rgb(1,81,40);width:93%;" >
                        <div style="margin: 20px 0px 0px 20px">
                            <b>医师建议:</b>
                            <span>${o.intro}</span>
                            <button data-toggle="modal" data-target="#myModal" style="background-color:green;font-size: 15px;color: white;">评价医生</button>
                        </div>
                    </div>
                </div>

                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                <h4 class="modal-title" id="myModalLabel">请输入您的评价</h4>
                            </div>
                            <div class="modal-body">

                                <form role="form" action="${pageContext.request.contextPath}/personal/comment" method="post">
                                    <div class="form-group">
                                        <label>请输入评价</label>
                                        <input type="text" class="form-control" name="com" placeholder="请输入名称">
                                        <input type="text" class="form-control" name ="doctorId" style="display: none" value="${o.doctorId}"/>
                                    </div>
                                    <button type="submit" class="btn btn-default">提交</button>
                                </form>

                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            </div>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal -->
                </div>

            </c:if>
        </c:forEach>
    </div>
</div>
<div style="margin: 0 auto;"><%@ include file="../ajax/page.jsp"%></div>


